public String toHeaderRow(Class<?> objectClass)
	{
		if(ClassPath.isPrimitive(objectClass) || Scheduler.isDateOrTime(objectClass))
			return new StringBuilder(objectClass.getSimpleName()).append("\n").toString();
	
		Method[]  methodArray = objectClass.getMethods();
		
		
		Method m;
		String methodName = null;

		methods = new TreeMap<String,Method>();
		
		for (int i = 0; i < methodArray.length; i++)
		{
			m = methodArray[i];
			methodName = m.getName();
			if(! methodName.startsWith(GET_PREFIX) || m.getParameterCount() != 0 || methodName.equals("getClass"))
				continue; //not properties
			
	
			methods.put(methodName, m);
		}
		
		StringBuilder csv = new StringBuilder();
		for (String keyMethodName : methods.keySet())
		{
			if(csv.length() != 0)
				csv.append(SEPARATOR);
			
			csv.append(QUOTE).append(format(toFieldName(keyMethodName))).append(QUOTE);
			
		}
		csv.append(NEWLINE);
		
		return csv.toString();
	}
public String toHeaderRow ( Class < ? > objectClass ) { if ( ClassPath . isPrimitive ( objectClass ) || Scheduler . isDateOrTime ( objectClass ) ) return new StringBuilder ( objectClass . getSimpleName ( ) ) . append ( "\n" ) . toString ( ) ; Method [ ] methodArray = objectClass . getMethods ( ) ; Method m ; String methodName = null ; methods = new TreeMap < String , Method > ( ) ; for ( int i = 0 ; i < methodArray . length ; i ++ ) { m = methodArray [ i ] ; methodName = m . getName ( ) ; if ( ! methodName . startsWith ( GET_PREFIX ) || m . getParameterCount ( ) != 0 || methodName . equals ( "getClass" ) ) continue ; methods . put ( methodName , m ) ; } StringBuilder csv = new StringBuilder ( ) ; for ( String keyMethodName : methods . keySet ( ) ) { if ( csv . length ( ) != 0 ) csv . append ( SEPARATOR ) ; csv . append ( QUOTE ) . append ( format ( toFieldName ( keyMethodName ) ) ) . append ( QUOTE ) ; } csv . append ( NEWLINE ) ; return csv . toString ( ) ; }
------------------------------------------------