/** * Gets deployment which is backed by specified archive. * * @param archive archive to get the deployment of * @return deployment bean of {@code archive} or null if there is no such mapping */ public T get(Archive<?> archive) { for (T deployment : deployments) { if (deployment.getDeployment() == archive) { return deployment; } } return null; }