public void log4dstm2(Object version) {

		if (version == null)
			return;

		Field[] fields = version.getClass().getDeclaredFields();
		for (int j = 0; j < fields.length; j++) {
			fields[j].setAccessible(true);

			System.out.print(fields[j].getName() + ",");

			if (fields[j].getType().getName()
					.equals(java.lang.String.class.getName())) {
				// String type
				try {
					System.out.print(fields[j].get(version));
				} catch (IllegalArgumentException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				} catch (IllegalAccessException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			} else if (fields[j].getType().getName()
					.equals(java.lang.Integer.class.getName())
					|| fields[j].getType().getName().equals("int")) {
				// Integer type
				try {
					System.out.println(fields[j].getInt(version));
				} catch (IllegalArgumentException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				} catch (IllegalAccessException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}

		}
		System.out.println();
	}