private static final String A4J_SKIN_PARAMETER = "org.ajax4jsf.SKIN";
protected Skin getSkinByName(Object currentSkinOrName) {
if (null == currentSkinOrName) {
throw new SkinNotFoundException(Messages
.getMessage(Messages.NULL_SKIN_NAME_ERROR));
}
// user binding return skin instance.
if (currentSkinOrName instanceof Skin) {
return (Skin) currentSkinOrName;