class DoubleArrayToListResolveDependencyStrategy implements IResolveDependencyStrategy {

    @Override
    public <T> T resolve(final Object... args) throws ResolveDependencyStrategyException {
        try {
            return (T) Arrays.stream((double[]) args[0]).boxed().collect(Collectors.toList());
        } catch (Exception e) {
            throw new ResolveDependencyStrategyException("Can't create list from double array.", e);
        }
    }

}