docs: public static final byte[] serialize(Serializable serializable) throws IOException {
  	
  		if (serializable == null) {
  			return null;
  		}
  		
  		ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
  		ObjectOutputStream objectOutputStream = null;
  		byte[] result = null;
  
  		if (null != _instance ){
  			SerializationService ss = _instance.serializationServiceRef.getService();
  			if (null != ss){
  				objectOutputStream = ss.createObjectOutputStream(byteArrayOutputStream);
  			}
  		} 
  		
  		if (null == objectOutputStream){
  			objectOutputStream = new ObjectOutputStream(byteArrayOutputStream);
  		}
  		
  		try {
  			objectOutputStream.writeObject(serializable);
  			result = byteArrayOutputStream.toByteArray();
  		} finally {
  
  			if (byteArrayOutputStream != null) {
  				byteArrayOutputStream.close();
  			}
  			if (objectOutputStream != null) {
  				objectOutputStream.close();
  			}
  		}
  
  		return result;
  	}