class LocationImageConfig {
	
  @Value("${config.cms.contentUrl}")
  private String contentUrl;
  
  @Value("${config.cms.method}")
  private String method;
  
  @Value("${config.cms.static.path}")
  private String staticPath;


  @Bean
  public ImageFilePath img() {<FILL_FUNCTION_BODY>}
  
  
}

	  
	if(!StringUtils.isEmpty(method) && !method.equals("default")) {
	    CloudFilePathUtils cloudFilePathUtils = new CloudFilePathUtils();
	    cloudFilePathUtils.setBasePath(contentUrl);
	    cloudFilePathUtils.setContentUrlPath(contentUrl);
	    return cloudFilePathUtils;

	} else {

		
	    LocalImageFilePathUtils localImageFilePathUtils = new LocalImageFilePathUtils();
	    localImageFilePathUtils.setBasePath(staticPath);
	    localImageFilePathUtils.setContentUrlPath(contentUrl);
	    return localImageFilePathUtils;
	}
	  

  
<no_super_class>