private static transient Logger logger = Logger.getLogger(GetEntityFieldsAction.class);
public void service(SourceBean request, SourceBean response) {
String fieldId;
IDataSource dataSource;
IModelStructure structure;
IModelField field;
IModelEntity parentEntity;
IModelEntity dimensionalEntity;
List fields;
JSONArray toReturn;
logger.debug("IN");
try {
super.service(request, response);
fieldId = getAttributeAsString( FIELD_ID );
logger.debug("Parameter [" + FIELD_ID + "] is equals to [" + fieldId + "]");
Assert.assertNotNull(getEngineInstance(), "It's not possible to execute " + this.getActionName() + " service before having properly created an instance of EngineInstance class");
dataSource = getDataSource();
structure = dataSource.getModelStructure();
field = structure.getField(fieldId);
parentEntity = field.getParent();
fields = parentEntity.getAllFields();
toReturn = new JSONArray();