Fixed the problem of NullPointerException in MockPrintWriter
Finish default Portlet preferences and preferences validator