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]);
if(customLabels != null)
return new LabelResource(customLabels, lang);
else
return null;
}