try {
Field [] fields = SqoopOptions.class.getDeclaredFields();
for (Field f : fields) {
if (f.isAnnotationPresent(StoredAsProperty.class)) {
Class typ = f.getType();
StoredAsProperty storedAs = f.getAnnotation(StoredAsProperty.class);
String propName = storedAs.value();
if (typ.equals(int.class)) {
putProperty(props, propName, Integer.toString(f.getInt(this)));
} else if (typ.equals(boolean.class)) {
putProperty(props, propName, Boolean.toString(f.getBoolean(this)));