jdk6 compliancy; requireNonNull -> NPE check