code: public Deployment findById(String id)
     {
        for (Deployment d : deployments)
        {
           if (d.getIdentifier() != null && d.getIdentifier().equals(id))
              return d;
        }
        return null;
     }
docs: {@inheritDoc}