Added support for static initialization method for views (staticInit)