code: public static String getFormat(TypeDeclaration param) {
  		if (param == null) {
  			return null;
  		}
  		if (param instanceof NumberTypeDeclaration) {
  			return ((NumberTypeDeclaration) param).format();
  		}
  		if (param instanceof DateTimeTypeDeclaration) {
  			return ((DateTimeTypeDeclaration) param).format();
  		}
  
  		return null;
  	}
docs: IF it has a format defined, this will return it
  
  @param param
  The parameter to inspect
  @return Format, if defined