}
sc.install(on, loaderObjectName, element);
// inject dependencies
mbeanServer.setAttribute(on, new Attribute("ServerPeer", getServiceName()));
mbeanServer.setAttribute(on, new Attribute("JNDIName", jndiName));
if (params)
{
mbeanServer.setAttribute(on, new Attribute("FullSize", new Integer(fullSize)));
mbeanServer.setAttribute(on, new Attribute("PageSize", new Integer(pageSize)));
mbeanServer.setAttribute(on, new Attribute("DownCacheSize", new Integer(downCacheSize)));
}
mbeanServer.invoke(on, "create", new Object[0], new String[0]);
mbeanServer.invoke(on, "start", new Object[0], new String[0]);
return (String)JMXAccessor.getJMXAttributeOverSecurity(mbeanServer, on, "JNDIName");