scala.collection.immutable.List<Authorization> authorizations = emptyScalaList();
if (null != authorizationContext) {
authorizations = authorizationContext.getScalaAuthorizations();
}
Option modelOption = toOption(toScalaModelMap(models));
ArrayList sortedDescriptions = new ArrayList(apiDescriptions);
Collections.sort(sortedDescriptions, this.apiDescriptionOrdering);
String resourcePath = longestCommonPath(sortedDescriptions);