private static IParameter[] GetParameters(IEntity entity) { return ((IEntityWithParameters)entity).GetParameters(); }