What happens with the value for CUSTOM_JSPS_FOLDER is something like 'custom-folder', with no preceding '/'?  

You can use the IPath API for append() to safely add a new folder.

defaultWebappRootFolderPath.append(...)