/** * Get the namespace bindings for a deployment context. * * @param context The deployment context * @return The existing namespace bindings, or a new instance if they don't already exist. */ public static NamespaceBindings getNamespaceBindings(final DeploymentUnit context) { NamespaceBindings namespaceBindings = context.getAttachment(ATTACHMENT_KEY); if(namespaceBindings == null) { namespaceBindings = new NamespaceBindings(); context.putAttachment(ATTACHMENT_KEY, namespaceBindings); } return namespaceBindings; }