}
return string.getStringValue();
}
public static ReadOnlyContext buildComponentContext(EARContext earContext, URI uri, UserTransaction userTransaction, EnvEntryType[] envEntries, EjbRefType[] ejbRefs, Map ejbRefMap, EjbLocalRefType[] ejbLocalRefs, Map ejbLocalRefMap, ResourceRefType[] resourceRefs, Map resourceRefMap, ResourceEnvRefType[] resourceEnvRefs, Map resourceEnvRefMap, MessageDestinationRefType[] messageDestinationRefs, ClassLoader cl) throws DeploymentException {
ComponentContextBuilder builder = new ComponentContextBuilder(new JMXReferenceFactory());
if (userTransaction != null) {
try {
builder.addUserTransaction(userTransaction);
} catch (NamingException e) {