private boolean isOptional(Type type) {
        return type.getTypeName().startsWith("java.lang.Optional");
    }
Checks if the specified type is a java {@link Optional}.

@param type the type to check
@return <code>true</code> if Optional, else <code>false</code>
common-parent/codegen/src/main/java/com/speedment/common/codegen/controller/SetGetAdd.java