public void putObject(final Reference reference, final String propertyName, final Serializable o) throws NamingException {
try {
reference.add(new BinaryRefAddr(propertyName, Serialization.storeObject(o)));
} catch (IOException e) {
NamingException ne = new NamingException("Cannot get bytes from the to recipients object");
ne.initCause(e);
throw ne;
}
}
/**