protected String handleGetActionPathRoot()
{
String actionPathRoot = null;
final FrontEndUseCase useCase = this.getUseCase();
if (useCase != null)
{
final StringBuffer buffer = new StringBuffer();
final String actionPathPrefix = Bpm4StrutsGlobals.PROPERTY_ACTION_PATH_PREFIX;
String prefix = this.isConfiguredProperty(actionPathPrefix) ? ObjectUtils
.toString(this.getConfiguredProperty(actionPathPrefix)) : "";
final ModelElementFacade useCasePackage = useCase.getPackage();
if (useCasePackage != null)
{
prefix = prefix.replaceAll("\\{0\\}", useCasePackage.getPackagePath());
}
buffer.append(prefix);
buffer.append('/');
buffer.append(StringUtilsHelper.upperCamelCaseName(useCase.getName()));
actionPathRoot = buffer.toString();
}
return actionPathRoot;
}