public EndpointReference createBusinessProcess( ResourceContext context,
CreateParamsType createparams )
throws Exception
{
Context initialContext = new InitialContext( );
BusinessprocesstypeHome home =
(BusinessprocesstypeHome) initialContext.lookup( BusinessprocesstypeHome.HOME_LOCATION );
BusinessprocesstypeResource resource = (BusinessprocesstypeResource) home.create( context, createparams );
ResourceadminHome aHome = (ResourceadminHome) getResourceContext().getResourceHome( );
aHome.getResources( ).put( resource.getID( ),
resource );
return resource.getEndpointReference( );
}