try
{
Util.rebind(container.getEnc(), encName, obj);
}
catch (NamingException e)
{
throw new RuntimeException(new StringBuilder().append("could not bind enc name '").append(encName).append("' for ").append(error).append(" for container ").append(container.getIdentifier()).append(e.getMessage()).toString());
}