String sName = ManagedUtil.getSimpleValue(mo, "name", String.class);//$NON-NLS-1$
if (sName.equals(sourceName)) {
ManagedProperty translatorProperty = mo.getProperty("translatorName"); //$NON-NLS-1$
if (translatorProperty == null) {
translatorProperty = new WritethroughManagedPropertyImpl(mo, new DefaultFieldsImpl("translatorName")); //$NON-NLS-1$
}
translatorProperty.setValue(ManagedUtil.wrap(SimpleMetaType.STRING, translatorName));
// set the jndi name for the ds.
ManagedProperty jndiProperty = mo.getProperty("connectionJndiName"); //$NON-NLS-1$
if (jndiProperty == null) {
jndiProperty = new WritethroughManagedPropertyImpl(mo, new DefaultFieldsImpl("connectionJndiName")); //$NON-NLS-1$
}
jndiProperty.setValue(ManagedUtil.wrap(SimpleMetaType.STRING, dsName));
}
}
} else {