*/
public abstract class TemplateLoader
{
public static Stylesheet loadWorkbook( final InputStream _stream ) throws IOException, SpreadsheetException
{
PackageLoader loader = new PackageLoader( _stream );
try {
InputStream input;
final String workbook;
input = loader.getRelationship( "" );
try {
RelationshipParser parser = new RelationshipParser( input, "" );
workbook = parser.findByType( XMLConstants.WORKBOOK_RELATIONSHIP_TYPE );
if (workbook == null)
throw new SpreadsheetException.LoadError( "officeDocument relationship was not found in the root relationshp list" );