protected void addResource(String resource){
  if (!StringUtils.isEmpty(resource)) {
    resources.add(resource);
  }
}

protected void addResource ( String resource ) { if ( ! StringUtils . isEmpty ( resource ) ) { resources . add ( resource ) ; } }
import a resources into view
