if ( resourceFile.getClassName () == null )
{
final String skinClass = skinInfo.getSkinClass ();
if ( skinClass == null )
{
throw new StyleException (
"Included skin file \"" + resourceFile.getSource () + "\" specified but skin \"class\" property is not set!" );
}
resourceFile.setClassName ( skinClass );
}
// Reading skin part from included file
final SkinInfo include = loadSkinInfo ( resourceFile );
if ( include == null )
{
throw new StyleException ( "Included skin file \"" + resourceFile.getSource () + "\" cannot be read!" );
}
// Adding information from included file
// Included styles order is preserved to preserve styles override order
styles.addAll ( i, include.getStyles () );