copper-server-api/src/main/java/com/pogeyan/cmis/api/AkkaJacksonSerializer.java
// "toBinary" serializes the given object to an Array of Bytes
"toBinary" serializes the given object to an Array of Bytes
" toBinary " serializes the given object to an Array of Bytes
@Override
	public byte[] toBinary(Object obj) {
		byte[] jsonValue = new byte[] {};
		try {
			jsonValue = mapper.writeValueAsBytes(obj);
			if (logger.isTraceEnabled())
				logger.trace("writing json Value : " + jsonValue);
			return jsonValue;
		} catch (JsonGenerationException e) {
			logger.error("Error while writing value : " + e.getMessage());
			e.printStackTrace();
		} catch (JsonMappingException e) {
			logger.error("Error while writing value : " + e.getMessage());
			e.printStackTrace();
		} catch (IOException e) {
			logger.error("Error while writing value : " + e.getMessage());
			e.printStackTrace();
		}
		return jsonValue;
	}
@ Override public byte [ ] toBinary ( Object obj ) { byte [ ] jsonValue = new byte [ ] { } ; try { jsonValue = mapper . writeValueAsBytes ( obj ) ; if ( logger . isTraceEnabled ( ) ) logger . trace ( "writing json Value : " + jsonValue ) ; return jsonValue ; } catch ( JsonGenerationException e ) { logger . error ( "Error while writing value : " + e . getMessage ( ) ) ; e . printStackTrace ( ) ; } catch ( JsonMappingException e ) { logger . error ( "Error while writing value : " + e . getMessage ( ) ) ; e . printStackTrace ( ) ; } catch ( IOException e ) { logger . error ( "Error while writing value : " + e . getMessage ( ) ) ; e . printStackTrace ( ) ; } return jsonValue ; }
"toBinary" serializes the given object to an Array of Bytes
" toBinary " serializes the given object to an Array of Bytes
// Put the code that serializes the object here