code: public boolean equalsTo(Object o)
      {
          if (o == null || !(o instanceof Document))
          {
              return false;
          }
          
          Document docCompared = (Document)o;
          if(getName() == null || !getName().equals(docCompared.getName())) return false;
          if(getRepository() == null || !getRepository().equals(docCompared.getRepository())) return false;
          
          return true;
      }
docs: <p>equalsTo.</p>
  
  @param o a {@link java.lang.Object} object.
  @return a boolean.