class TeamTransformer {

    TeamDTO toDto(Team team) {
        TeamDTO result = new TeamDTO();
        result.setId(0L);
        if (null != team) {
            result.setId(team.getId());
            result.setName(team.getName());
            result.setAssignableToProblems(team.isAssignableToProblems());
            result.setAssignableToFunctionalities(team.isAssignableToFunctionalities());
        }
        return result;
    }

}