public ByteBuffer createBuffer(Map<String,Object> parameters){
  ByteBuffer buffer=createByteBuffer();
  for (  Field field : fields) {
    log.trace("Before write ByteBuffer.position={}",buffer.position());
    field.write(resolveInputValue(parameters,field),buffer);
    log.trace("After write ByteBuffer.position={}",buffer.position());
  }
  buffer.flip();
  return buffer;
}

public ByteBuffer createBuffer ( Map < String , Object > parameters ) { ByteBuffer buffer = createByteBuffer ( ) ; for ( Field field : fields ) { log . trace ( "Before write ByteBuffer.position={}" , buffer . position ( ) ) ; field . write ( resolveInputValue ( parameters , field ) , buffer ) ; log . trace ( "After write ByteBuffer.position={}" , buffer . position ( ) ) ; } buffer . flip ( ) ; return buffer ; }
initializes a bytebuffer and sets value of matching fields for use as input to a function call ( work area one ) .
