String encodedReference = property(propertyName);
if (encodedReference.startsWith("{"+ComponentParser.INTERFACE+"}")) {
encodedReference = encodedReference.substring(("{"+ComponentParser.INTERFACE+"}").length());
return (!encodedReference.isEmpty()) ? new InterfaceReference(encodedReference) : new UnknownReference(new InterfaceReference("unknown"));
}
else if (encodedReference.startsWith("{"+ComponentParser.MESSAGE+"}")) {
encodedReference = encodedReference.substring(("{"+ComponentParser.MESSAGE+"}").length());
return (!encodedReference.isEmpty()) ? new MessageReference(encodedReference) : new UnknownReference(new MessageReference("unknown"));
}
else if (encodedReference.startsWith("{"+ComponentParser.PACKAGE+"}")) {
encodedReference = encodedReference.substring(("{"+ComponentParser.PACKAGE+"}").length());
return new PackageReference(encodedReference);
}