code: private static String getDocumentName(final DocumentStatusContainer document) {
  		if ("prop".equalsIgnoreCase(document.getDocument().getDocumentType())) {
  			return "Proposition";
  		} else if (document.getDocument().getSubType() != null && document.getDocument().getSubType().length() > "motion".length()) {
  			return document.getDocument().getSubType();
  		} else {
  			return "Motion";
  		}
  		
  	}
docs: Gets the document name.
  
  @param document
  the document
  @return the document name