protected static LabelResource getCustomLabelResource(SimpleParser.Entity labelEntity,
String lang) throws ParseException {
LabelProvider customLabels = null;
String[] labelParameters = labelEntity.getStringArray();
if(labelParameters.length == 1)
customLabels = new ResourceLabelProvider(labelParameters[0]);
else if(labelParameters.length == 2)
customLabels = new ResourceLabelProvider(labelParameters[0], labelParameters[1]);