SimpleName fragmentSize = f.newSimpleName("fragmentSize");
List<Statement> statements = Lists.create();
statements.add(createNullCheck(dataType));
statements.add(createNullCheck(path));
statements.add(createNullCheck(stream));
Expression isNotHead = new ExpressionBuilder(f, offset)
.apply(InfixOperator.GREATER, Models.toLiteral(f, 0L))
.toExpression();
if (isFastMode() == false) {
statements.add(f.newIfStatement(
isNotHead,