class JsonUtils {

    public static String beanToJson(Object bean){
		try {
			return getInstance().writeValueAsString(bean);
		} catch (JsonGenerationException e) {
			 logger.error(e.getMessage(),e);
		} catch (JsonMappingException e) {
			 logger.error(e.getMessage(),e);
		} catch (IOException e) {
			 logger.error(e.getMessage(),e);
		}
    	return null;
    }

    private  JsonUtils();

}