private void setLocationForStaticAssets(ConfigurableEmbeddedServletContainer container) {
   File root;
   String prefixPath = resolvePathPrefix();
   if (env.acceptsProfiles(Constants.SPRING_PROFILE_PRODUCTION)) {
     root = new File(prefixPath + "target/www/");
   } else {
     root = new File(prefixPath + "src/main/webapp/");
   }
   if (root.exists() && root.isDirectory()) {
     container.setDocumentRoot(root);
   }
 }