InputStream templateStream = clazz.getResourceAsStream( templateFile );
if ( templateStream != null )
{
try
{
<BUG>String str = IOUtils.toString( templateStream, "UTF-8" );
</BUG>
switch ( str.charAt(0) )
{ // skip BOM
case 0xFEFF: // UTF-16/UTF-32, big-endian

InputStream templateStream = clazz.getResourceAsStream( templateFile );
if ( templateStream != null )
{
try
{
String str = IOUtils.toString( templateStream, "UTF-8" ); //$NON-NLS-1$
switch ( str.charAt(0) )
{ // skip BOM
case 0xFEFF: // UTF-16/UTF-32, big-endian
