if (statement.finallyBlock() != null) {
if (statement.finallyBlock().block() != null){
new BlockAnalyser(statement.finallyBlock().block(), this.belongsToClass, this.belongsToMethod);
}
}
<BUG>if ((statement.resourceSpecification() != null) && !statement.resourceSpecification().isEmpty()) {

for (ResourceContext resource : statement.resourceSpecification().resources().resource()) {</BUG>
VariableAnalyser variableAnalyser = new VariableAnalyser(this.belongsToClass);
variableAnalyser.analyseResourceVariable(resource, this.belongsToMethod);

if (statement.finallyBlock() != null) {
if (statement.finallyBlock().block() != null){
new BlockAnalyser(statement.finallyBlock().block(), this.belongsToClass, this.belongsToMethod);
}
}
if ((statement.resourceSpecification() != null) && (statement.resourceSpecification().resources() != null) &&
(statement.resourceSpecification().resources().resource() != null) &&
!statement.resourceSpecification().resources().resource().isEmpty()) {
for (ResourceContext resource : statement.resourceSpecification().resources().resource()) {
VariableAnalyser variableAnalyser = new VariableAnalyser(this.belongsToClass);
variableAnalyser.analyseResourceVariable(resource, this.belongsToMethod);
