private static void setProperty(Object pt1, String propertyName,
			Object value) {

//		PropertyDescriptor pd2;
//		try {
//			pd2 = new PropertyDescriptor(propertyName, pt1.getClass());
//			pd2.getWriteMethod().invoke(pt1, value);
//		} catch (Exception e) {
//			e.printStackTrace();
//		}

		try {
			BeanInfo beanInfo = Introspector.getBeanInfo(pt1.getClass());
			PropertyDescriptor[] pds = beanInfo.getPropertyDescriptors();
			for (PropertyDescriptor pd : pds) {
				if (pd.getName().equals(propertyName)) {
					pd.getWriteMethod().invoke(pt1, value);
					break;
				}
			}
		} catch (IllegalArgumentException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IntrospectionException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}