drop build request with bad flags
getSession() cannot be null
javadoc fixes