public Object createObject()
throws IOException
{
Object result = null;
BaseContainer container = EjbContainerUtilImpl.getInstance().getContainer(containerId);
//container can be null if the app has been undeployed
// after this was serialized
if (container == null) {
_ejbLogger.log(Level.WARNING,
"ejb.base.io.EJBOutputStream.null_container: "
+ debugStr);
result = null;
} else {
try {
if( remoteBusinessInterface == null ) {
java.rmi.Remote reference = container.
createRemoteReferenceWithId(instanceKey, null);
result = AbstractSerializableS1ASEJBReference.
doRemoteRefClassLoaderConversion(reference);
} else {
String generatedRemoteIntfName = EJBUtils.
getGeneratedRemoteIntfName(remoteBusinessInterface);
java.rmi.Remote remoteRef = container.
createRemoteReferenceWithId(instanceKey,
generatedRemoteIntfName);
java.rmi.Remote newRemoteRef =
AbstractSerializableS1ASEJBReference.