if (null != skinStyleSheetUri) {
String resourceURL = context.getApplication()
.getViewHandler().getResourceURL(context,
skinStyleSheetUri);
URIInternetResource resourceImpl = new URIInternetResource();
resourceImpl.setUri(resourceURL);
resourceImpl.setRenderer(resourceBuilder.getStyleRenderer());
resourceImpl.encode(context, null);
useSkinning = true;
}
if (null != skinExtendedStyleSheetUri && extendedSkinningAllowed) {
String resourceURL = context.getApplication().getViewHandler().getResourceURL(context,
skinExtendedStyleSheetUri);
URIInternetResource resourceImpl = new URIInternetResource();
resourceImpl.setUri(resourceURL);
resourceImpl.setRenderer(resourceBuilder.getStyleRenderer());
resourceImpl.encode(context, null, EXTENDED_SKINNING);
useSkinning = true;
}
if (useSkinning && extendedSkinningAllowed) {