Gets class instance.
token.checkIfPermissionAllowed(Permissions.MIDP);
if (instance == null) {
if (!MIDletSuiteUtils.isAmsIsolate()) {
Link receiveLink = NamedLinkPortal.getLink(
SystemServiceRequestHandler.SERVICE_TO_CLIENT_LINK_NAME);
Link sendLink = NamedLinkPortal.getLink(
SystemServiceRequestHandler.CLIENT_TO_SERVICE_LINK_NAME);
SystemServiceConnectionLinks requestLinks = null;
requestLinks = new SystemServiceConnectionLinks(
sendLink, receiveLink);
instance = new SystemServiceRequestorRemote(requestLinks);
} else {
SystemServiceManager manager = null;
manager = SystemServiceManager.getInstance(token);
instance = new SystemServiceRequestorLocal(manager);
}
}
return instance;