@XNode("@type") protected String type; public void bindSelf(Context namingContext) throws NamingException { namingContext.bind(name, new LinkRef(global)); } public void unbindSelf(Context namingContext) throws NamingException { namingContext.unbind(name); } }