}
public java.lang.Object getObjectReference() throws WSIFException {
Trc.entry(this);
if (fieldObjectReference == null) {
JavaAddress address = null;
try {
ExtensibilityElement portExtension =
(ExtensibilityElement) fieldPortModel.getExtensibilityElements().get(0);
if (portExtension == null) {
throw new WSIFException("missing port extension");
}
address = (JavaAddress) portExtension;
fieldObjectReference =
Class
.forName(
address.getClassName(),
true,
Thread.currentThread().getContextClassLoader())
.newInstance();
} catch (Exception ex) {
Trc.exception(ex);
throw new WSIFException(
"Could not create object of class '" + address.getClassName() + "'",
ex);
}
}
Trc.exit(fieldObjectReference);
return fieldObjectReference;