class BooleanArrayToListResolveDependencyStrategy implements IResolveDependencyStrategy {

    @Override
    public <T> T resolve(final Object... args) throws ResolveDependencyStrategyException {
        try {

            boolean[] booleans = (boolean[]) args[0];
            List<Boolean> result = new ArrayList<>(booleans.length);
            for (boolean aBoolean : booleans) {
                result.add(aBoolean);
            }

            return (T) result;
        } catch (Exception e) {
            throw new ResolveDependencyStrategyException("Can't create list from boolean array.", e);
        }
    }

}