public void createBranch(final CreateBranchCommand aCommand) { checkNotNull(aCommand,COMMAND_CANNOT_BE_NULL); final Repository repository=findRepository(aCommand); final Branch branch = repository.createBranch(aCommand.branchName(), aCommand.branchResource()); branchRepository().add(branch); }