Context myEnv = (Context) new InitialContext()
.lookup(jndiEnvPath);
// Getting JAIN SIP Resource Adaptor interfaces
SipFactoryProvider factoryProvider = (SipFactoryProvider) myEnv
.lookup(jndiSipFactoryProviderPath);
addressFactory = factoryProvider.getAddressFactory();
headerFactory = factoryProvider.getHeaderFactory();
messageFactory = factoryProvider.getMessageFactory();
sipProvider = factoryProvider.getSipProvider();
return new SipUtilsImpl(sipProvider, headerFactory, messageFactory, addressFactory);
}