throw new AppFabricServiceException("Fail to delete program " + throwable.getMessage());
}
}
@Override
public void removeApplication(AuthToken token, FlowIdentifier identifier) throws AppFabricServiceException {
<BUG>Id.Account accountId = null;
final Id.Application appId;</BUG>
try {
Preconditions.checkNotNull(identifier, "No application id provided.");
<BUG>accountId = Id.Account.from(identifier.getAccountId());

appId = Id.Application.from(accountId, identifier.getApplicationId());
</BUG>
Preconditions.checkState(!anyRunning(new Predicate<Id.Program>() {

throw new AppFabricServiceException("Fail to delete program " + throwable.getMessage());
}
}
@Override
public void removeApplication(AuthToken token, FlowIdentifier identifier) throws AppFabricServiceException {
try {
Preconditions.checkNotNull(identifier, "No application id provided.");
Id.Account accountId = Id.Account.from(identifier.getAccountId());
final Id.Application appId = Id.Application.from(accountId, identifier.getApplicationId());
Preconditions.checkState(!anyRunning(new Predicate<Id.Program>() {
