else {
<BUG>p = confluence.storePage(p);
</BUG>
}
for( String label : child.getComputedLabels() ) {
<BUG>confluence.addLabelByName(label, Long.parseLong(p.getId()) );
</BUG>
}
child.setName( pageName );
<BUG>return p;
} catch (Exception e) {</BUG>
final String msg = "error loading template";

else {
result = confluence.storePage(result);
}
for( String label : child.getComputedLabels() ) {
confluence.addLabelByName(label, Long.parseLong(result.getId()) );
}
child.setName( pageName );
return result;
} catch (Exception e) {
final String msg = "error loading template";
