/** * {@inheritDoc} */ public void registerResourceAdapter(String uniqueId, File root, Connector md, Activation a) throws AlreadyExistsException { if (uniqueId == null) throw new IllegalArgumentException("UniqueId is null"); if (uniqueId.trim().equals("")) throw new IllegalArgumentException("UniqueId is empty"); if (root == null) throw new IllegalArgumentException("Root is null"); if (md == null) throw new IllegalArgumentException("Connector is null"); // The Activation metadata object can be null if (raTemplates.containsKey(uniqueId)) throw new AlreadyExistsException(bundle.keyNotRegistered(uniqueId)); raTemplates.put(uniqueId, md); raRoots.put(uniqueId, root); activations.put(uniqueId, a); }