added throwing of exception if user is null
Log messages modified from warnings to error
JavaDoc slightly modified to exclude markups information that is not provided with package